fix(plugin-gantt): 加高条高、进度/长度拖拽分层、点击条不再弹详情 (#2352)#2353
Open
baozhoutao wants to merge 1 commit into
Open
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
✅ Console Performance Budget
📦 Bundle Size Report
Size Limits
|
…r on bar click (#2352) - Bar height ~27px (even 28px keeps exact centering / link-anchor alignment) - Length (resize) grips live in the bar's top band, progress grip in the bottom band, so the two hit areas never overlap (dhtmlx-style) - Clicking a bar only selects it; the detail drawer stays reachable via the task-name column, context menu, and keyboard Enter (avoids mis-tap 易误触)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #2352
改动(参考 dhtmlx gantt)
均在
packages/plugin-gantt/src/GanttView.tsx:barHeight = rowHeight − 2·barTop的精确居中不变量,避免依赖箭头出现半像素错位)。40px 行由 24 → 28px。top:0, height≈14)。onTaskClick。详情入口保留:左侧任务名列点击、右键菜单「查看详情」、键盘 Enter。验证
gantt-demo@ :5199)实测:barH=28;resize 手柄top≈1,h=14(上段),进度手柄top=14,h=13(下段)——无重叠。onTaskClick、无 Drawer。onTaskClick并高亮选中。pnpm --filter @object-ui/plugin-gantt test:183 个可运行用例全部通过(含 resize/拖拽、进度、树居中、只读、分组)。type-check:GanttView.tsx无类型错误。